 import {fetchRequest} from '../../utils/request'
 export const audioRoomAPI = {
   //语音聊天室-加入房间
   joinRoom:(data)=>{
    return fetchRequest('/h5app/voice-room/join-room',data,'post')
   },
   // 语音聊天室-预约房间
   orderRoom:(data)=>{
    return fetchRequest('/h5app/voice-room/reserve-room',data,'post')
   },
   // 语音聊天室-房间列表
   roomList:(data)=>{
    return fetchRequest('/h5app/voice-room/room-list',data,'post')
   },
   // 语音聊天室-预约列表
   resList:(data)=>{
    return fetchRequest('/h5app/voice-room/reserve-list',data,'post')
   },
   // 语音聊天室-用户列表
   userList:(data)=>{
    return fetchRequest('/h5app/voice-room/user-list',data,'post')
   },
   //语音聊天室-结束话题
   dissolve:(data)=>{
    return fetchRequest('/h5app/voice-room/dissolve-room',data,'post')
   },
   //语音聊天室-上麦申请
   speaking:(data)=>{
    return fetchRequest('/h5app/voice-room/speaking-apply',data,'post')
   },
   //语音聊天室-同意上麦
   agreeSpeaking:(data)=>{
    return fetchRequest('/h5app/voice-room/agree-speaking',data,'post')
   },
   //语音聊天室-房主下麦主播
   cannelSpeaking:(data)=>{
    return fetchRequest('/h5app/voice-room/cannel-speaking',data,'post')
   },
   //语音聊天室-主播自己下麦
   myselfSpeaking:(data)=>{
    return fetchRequest('/h5app/voice-room/cannel-myself-speaking',data,'post')
   },
   //语音聊天室-建房
   createRoom:(data)=>{
    return fetchRequest('/h5app/voice-room/create-room',data,'post')
   },
   //语音聊天室-编辑房间
   roomInfo:(data)=>{
    return fetchRequest('/h5app/voice-room/update-room',data,'post')
   },
   //语音聊天室-麦序列表
   speakingList:(data)=>{
    return fetchRequest('/h5app/voice-room/speaking-list',data,'post')
   },
   //语音聊天室-开麦
   openMike:(data)=>{
    return fetchRequest('/h5app/voice-room/open-mike',data,'post')
   },
   //语音聊天室-关麦
   closeMike:(data)=>{
    return fetchRequest('/h5app/voice-room/close-mike',data,'post')
   },
    //语音聊天室-关麦
    getUnlimited:(data)=>{
      return fetchRequest('/h5app/get-unlimited',data,'post')
    },
    //用户卡片
    getUserInfo:(data)=>{
      return fetchRequest('/h5app/user/info',data,'post')
    },
    // 关注
    follow:(data)=>{
      return fetchRequest('/h5app/user/user-follow',data,'post')
    },
    // 取消上麦
    refuseSpeaking:(data)=>{
      return fetchRequest('/h5app/voice-room/refuse-speaking',data,'post')
    },
    //获取商品列表
    getShopList:(data)=>{
      return fetchRequest('/h5app/product-list',data,'post')
    },
    //获取沙龙状态0.待开启1.已开启2.已结束3.隐藏
    roomStatus:(data)=>{
      return fetchRequest('/h5app/voice-room/room-status',data,'post')
    },
 }